package com.example.clooweather.util;

import android.content.Intent;

import com.example.clooweather.R;

import java.io.File;
import java.lang.reflect.Field;

/**
 * Created by 李明洋~ on 2018/3/13.
 */

public class WeatherImage {
    //这个类用于设置天气图片
    public int UpdateImage(String weatherInfo) {
        switch (weatherInfo) {
            case "晴":
                return R.drawable.ic_100;
            case "多云":
                return R.drawable.ic_101;
            case "少云":
                return R.drawable.ic_102;
            case "晴间多云":
                return R.drawable.ic_103;
            case "阴":
                return R.drawable.ic_104;
            case "有风":
                return R.drawable.ic_200;
            case "平静":
                return R.drawable.ic_201;
            case "微风":
                return R.drawable.ic_202;
            case "和风":
                return R.drawable.ic_203;
            case "清风":
                return R.drawable.ic_204;
            case "强风/劲风":
                return R.drawable.ic_205;
            case "疾风":
                return R.drawable.ic_206;
            case "大风":
                return R.drawable.ic_207;
            case "烈风":
                return R.drawable.ic_208;
            case "风暴":
                return R.drawable.ic_209;
            case "狂爆风":
                return R.drawable.ic_210;
            case "飓风":
                return R.drawable.ic_211;
            case "龙卷风":
                return R.drawable.ic_212;
            case "热带风暴":
                return R.drawable.ic_213;
            case "阵雨":
                return R.drawable.ic_300;
            case "强阵雨":
                return R.drawable.ic_301;
            case "雷阵雨":
                return R.drawable.ic_302;
            case "强雷阵雨":
                return R.drawable.ic_303;
            case "雷阵雨伴有冰雹":
                return R.drawable.ic_304;
            case "小雨":
                return R.drawable.ic_305;
            case "中雨":
                return R.drawable.ic_306;
            case "大雨":
                return R.drawable.ic_307;
            case "极端降雨":
                return R.drawable.ic_312;
            case "毛毛雨":
                return R.drawable.ic_309;
            case "暴雨":
                return R.drawable.ic_310;
            case "大暴雨":
                return R.drawable.ic_311;
            case "特大暴雨":
                return R.drawable.ic_312;
            case "冻雨":
                return R.drawable.ic_313;
            case "小雪":
                return R.drawable.ic_400;
            case "中雪":
                return R.drawable.ic_401;
            case "大雪":
                return R.drawable.ic_402;
            case "暴雪":
                return R.drawable.ic_403;
            case "雨夹雪":
                return R.drawable.ic_404;
            case "雨雪天气":
                return R.drawable.ic_405;
            case "阵雨夹雪":
                return R.drawable.ic_406;
            case "阵雪":
                return R.drawable.ic_407;
            case "薄雾":
                return R.drawable.ic_500;
            case "雾":
                return R.drawable.ic_501;
            case "霾":
                return R.drawable.ic_502;
            case "扬沙":
                return R.drawable.ic_503;
            case "浮尘":
                return R.drawable.ic_504;
            case "沙尘暴":
                return R.drawable.ic_507;
            case "强沙尘暴":
                return R.drawable.ic_508;
            case "热":
                return R.drawable.ic_900;
            case "冷":
                return R.drawable.ic_901;
            case "未知":
                return R.drawable.ic_999;

        }
        return 0;
    }
}
